package com.kaifamiao.demo.d0811;

import java.util.List;

public class Demo03 {

    public static void main(String[] args) {
        List list = List.of("a", "b", 1, 2, 'f', 'q');

//        list.add(3);
        System.out.println(list);
//        System.out.println(list.get(0));

        List subList = list.subList(1, 3);
        System.out.println(subList);
        System.out.println(subList);
        System.out.println(list);
    }
}
